# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=noson-app
pkgver=5.4.1
pkgrel=1
pkgdesc="The essential to control music from your SONOS devices on Linux platforms"
url="https://janbar.github.io/noson-app/"
# armhf: Missing Qt stuff
# riscv64: truncated relocation
arch="all !armhf !riscv64"
license="GPL-3.0-only"
subpackages="$pkgname-dbg"
depends="qt5-qtsvg"
makedepends="
	cmake
	flac-dev
	noson-dev
	pulseaudio-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	samurai
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/janbar/noson-app/archive/$pkgver.tar.gz
	"
options="!check" # No unit tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=1 \
		-DBUILD_DEPENDENCIES=0 \
		-DBUILD_LIBNOSON=0
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
dbddb96f3e0720c3d9306d34466575d64be622250345ff0d45589abbdfc6f4a777a3fe1314c023ac5240b208f865dd7886c8ef206bb81b85262e5172a72f9441  noson-app-5.4.1.tar.gz
"
